﻿
namespace ParaEditor.DomainSource.Entities
{
    public class CrStationInfoPk
    {
        public virtual int algVer { get; set; }
        public virtual short lineId { get; set; }
        public virtual short stationId { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is CrStationInfoPk)
            {
                CrStationInfoPk pk = obj as CrStationInfoPk;
                if (this.algVer == pk.algVer
                     && this.lineId == pk.lineId && this.stationId == pk.stationId)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return false;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
